package entity

const (
	//登陆方式
	LoginType_MobilePwd     int = 0 //0 手机号+密码
	LoginType_MobileVercode int = 1 //1 手机号+短信码

	//站内信 -- 读取标志
	EReadFlag_All    int = 0 //0 全部，不限
	EReadFlag_Read   int = 1 //1 未读
	EReadFlag_UnRead int = 2 //2 已读

	//站内信 -- 站内信类型
	EMessageType_ToAll      int = 0 //站内信类型 0,不限
	EMessageType_ToOperator int = 1 //站内信类型 1：发送给业务员
	EMessageType_ToCustomer int = 2 //站内信类型 2，发送给客户
	EMessageType_ToAdmin    int = 3 //站内信类型 2，发送给管理员(有管理身份的均收到)

	//站内信动作
	EMessageAction_New     int              = 0  //新建，保存草稿（未发送）
	EMessageAction_Send    int              = 1  //发送
	EMessageAction_Delete  int              = 2  //删除
	EMessageAction_Recall  int              = 3  //召回已发送
	ECertificateType_Other ECertificateType = 11 //其它

	//部门状态
	EDepartmentStatus_Normal      int = 0 //正常
	EDepartmentStatus_Unpublished int = 1 //编辑中，未发布
	EDepartmentStatus_Delete      int = 2 //删除

	//雇员状态
	EEmployeeStatus_Normal    int = 0 //当前员工状态：0正常、1锁定、2离职
	EEmployeeStatus_Lock      int = 1 //当前员工状态：0正常、1锁定、2离职
	EEmployeeStatus_Dimission int = 2 //当前员工状态：0正常、1锁定、2离职

	//雇员角色
	EEmployeeRole_Outsourcing int = 0 //当前员工角色：0：外包雇员；1：部门总监(司编雇员）；2：HR管理员
	EEmployeeRole_DeptLeader  int = 1 //当前员工角色：0：外包雇员；1：部门总监(司编雇员）；2：HR管理员
	EEmployeeRole_Hr          int = 2 //当前员工角色：0：外包雇员；1：部门总监(司编雇员）；2：HR管理员
	EEmployeeRole_Undef       int = 3 //未定义

	//加班申请状态
	EOvertimeStatus_Draft         int = 0 //0:draft 草稿
	EOvertimeStatus_Send          int = 1 //1:send  发送，待审批
	EOvertimeStatus_Delete        int = 2 //2:delete 删除
	EOvertimeStatus_Recall        int = 3 //3:recall 召回
	EOvertimeStatus_Refuse        int = 4 //4:refuse 拒绝
	EOvertimeStatus_PassAndCancel int = 5 //5:pass and cancel 通过后取消
	EOvertimeStatus_Pass          int = 6 //6:pass 审批通过

	//加班类型
	EOvertimeType_Unknow          int = 0 //0、不限、1工作日、2周末、3法定假日、4其它
	EOvertimeType_Workday         int = 1 //workday
	EOvertimeType_Weekend         int = 2 //weekend
	EOvertimeType_OfficialHoliday int = 3 //official holiday	3法定假日
	EOvertimeType_Other           int = 4

	//请假申请状态
	EVacationStatus_Draft         int = 0 //0: draft 编辑中
	EVacationStatus_Send          int = 1 //1：send,待审批
	EVacationStatus_Delete        int = 2 //2：deletec 撤销
	EVacationStatus_Recall        int = 3 //3: recall 召回
	EVacationStatus_Refuse        int = 4 //4: refuse
	EVacationStatus_PassAndCancel int = 5 //5:pass and cancel
	EVacationStatus_Pass          int = 6 //6 通过

	//请假类型
	EVacationType_Unknow   int = 0 //0 不限
	EVacationType_Sick     int = 1 //1 病假
	EVacationType_Personal int = 2 //2 事假
	EVacationType_Annual   int = 3 //3 年假
	EVacationType_Marriage int = 4 //4 婚假
	EVacationType_Funeral  int = 5 //5 丧家
	EVacationType_Other    int = 6 //6 其它

	//申请详细类型
	EDetailType_Unknow          int = 0 //0 不限
	EDetailType_Sick            int = 1 //1 病假
	EDetailType_Personal        int = 2 //2 事假
	EDetailType_Annual          int = 3 //3 年假
	EDetailType_Marriage        int = 4 //4 婚假
	EDetailType_Funeral         int = 5 //5 丧假
	EDetailType_Workday         int = 6 //6 workday 工作日班班
	EDetailType_Weekend         int = 7 //7 weekend 周末班
	EDetailType_OfficialHoliday int = 8 //8 official holiday 法定假日

	EApplicationStatus_Draft         int = 0 //0:draft 草稿
	EApplicationStatus_Send          int = 1 //1:send  发送，待审批
	EApplicationStatus_Delete        int = 2 //2:delete 删除
	EApplicationStatus_Recall        int = 3 //3:recall 召回
	EApplicationStatus_Refuse        int = 4 //4:refuse 拒绝
	EApplicationStatus_PassAndCancel int = 5 //5:pass and cancel 通过后取消
	EApplicationStatus_Pass          int = 6 //6:pass 审批通过

	//申请类型：  1:加班、2：请假。
	EApplicationType_Overtime int = 1 //1 加班
	EApplicationType_Vacation int = 2 //2 请假

	// Redis key
	RedisCustomerBindMobileEvidence = "customer_bind_mobile_" // key: customer_bind_mobile_{user_id} value: evidence

	DateFormat = "2006-01-02" //日期模板

	ValidEndTimeAM   int = 43200
	ValidStartTimePM int = 48600

	ECheckIn_Mobile int = 0
	ECheckIn_Name   int = 1
	ECheckIn_Date   int = 4
	ECheckIn_Time   int = 5
)
